package com.ccp.dev.system.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.system.model.SysTenantOrg;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author nd
 */
@Mapper
public interface SysTenantOrgDao extends IBaseMapper<SysTenantOrg,String> {
    /**
     * 根据组织id 查询租户id
     * @param orgId
     * @return 返回查询到的租户id
     */
    String getTenantIdByOrgId(String orgId);

    /**
     * 根据组织orgId删除sys_tenant_org表中数据
     * @param orgId
     */
    void delByOrgId(String orgId);
}
